package com.example.wanghao.wangyixinwen.home;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.example.wanghao.wangyixinwen.act.MainActivity;
import com.example.wanghao.wangyixinwen.fragment.MenuFragment2;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by wanghao on 2016/5/18.
 */
public class SmartServicePage extends BasePage{
    public SmartServicePage(Context context) {
        super(context);
    }

    @Override
    public View initView() {
        TextView tv = new TextView(mContext);
        tv.setText("智慧服务");

        return tv;
    }

    @Override
    public void initData() {

        getNetData();
        
    }

    private void getNetData() {
        //假设获得到智慧服务的网络数据
        List<String> smartTitles = new ArrayList<>();
        smartTitles.add("智慧服务1");
        smartTitles.add("智慧服务2");
        smartTitles.add("智慧服务3");
        MenuFragment2 menuFragment2 = ((MainActivity) mContext).getMenuFragment();
       // menuFragment2.initSmartMenu(smartTitles);
    }
}
